package com.tianyang.yukuaifu.business.trade.contract;

import com.alibaba.fastjson.JSONObject;
import com.tianyang.yukuaifu.base.IBaseExtraView;
import com.tianyang.yukuaifu.base.IBasePresenter;
import com.tianyang.yukuaifu.business.trade.bean.AgentWalletOutput;
import com.tianyang.yukuaifu.business.trade.bean.EarningsOutput;
import com.tianyang.yukuaifu.business.trade.bean.EarningsTypeOutput;

import java.util.List;

/**
 * Description：收益
 * Created by xyj on 2024/3/10
 */
public interface EarningsContract {

    interface View extends IBaseExtraView<Presenter> {
        /**
         * 显示列表
         */
        void showEarningsListView(List<EarningsOutput> outputs, boolean isFirst);

        /**
         * 上拉加载状态
         */
        void showLoadMore(String loadMore);

        /**
         * 显示账户余额
         */
        void showAgentWallet(AgentWalletOutput output);

        /**
         * 显示交易
         */
        void showEarningsWallet(JSONObject output);

        /**
         * 显示分类
         */
        void showEarningsTypeView(List<EarningsTypeOutput> outputs);
    }

    interface Presenter extends IBasePresenter {

        void getSumUserWallet();

        /**
         * 获取列表
         */
        void getEarningsList(int pageNumber, int serviceType);

        /**
         * 账户余额
         */
        void getAgentWallet();
    }
}
